<!--
描述：实践环节组件
开发人：fwb
开发日期：2017年8月22日
-->
<template lang="pug">
    keep-alive
        kalix-table(bizKey="setTemplate" title='设置专业毕业学分要求模板' v-bind:tableFields="tableFields" v-bind:targetURL="targetURL"
        v-bind:bizDialog="bizDialog" v-bind:bizSearch="'SetTemplateSearch'" v-bind:btnList="btnList" v-bind:dictDefine="dictDefine"
        v-bind:isFixedColumn="isFixedColumn")
</template>

<script type="text/ecmascript-6">
    import {setTemplateURL, ToolButtonList} from '../../config.toml'

    export default {
        name: 'kalix-educational-settemplate',
        data() {
            return {
                btnList: ToolButtonList,
                dictDefine: [{ // 定义数据字典的显示
                    cacheKey: 'EDUCATIONAL-DICT-KEY',
                    type: '课程/环节',
                    targetField: 'kchjName',
                    sourceField: 'kchj'
                },{ // 定义数据字典的显示
                    cacheKey: 'EDUCATIONAL-DICT-KEY',
                    type: '课程类别1',
                    targetField: 'kclb1Name',
                    sourceField: 'kclb1'
                },{ // 定义数据字典的显示
                    cacheKey: 'EDUCATIONAL-DICT-KEY',
                    type: '课程类别2',
                    targetField: 'kclb2Name',
                    sourceField: 'kclb2'
                },{ // 定义数据字典的显示
                    cacheKey: 'EDUCATIONAL-DICT-KEY',
                    type: '课程类别3',
                    targetField: 'kclb3Name',
                    sourceField: 'kclb3'
                },{ // 定义数据字典的显示
                    cacheKey: 'EDUCATIONAL-DICT-KEY',
                    type: '状态',
                    targetField: 'ztName',
                    sourceField: 'zt'
                },{ // 定义数据字典的显示
                    cacheKey: 'EDUCATIONAL-DICT-KEY',
                    type: '主修/辅修',
                    targetField: 'zxfxName',
                    sourceField: 'zxfx'
                }
                ],
                targetURL: setTemplateURL,
                tableFields: [
                    {prop: 'mbdm', label: '模板代码'},
                    {prop: 'mbmc', label: '模板名称'},
                    {prop: 'kchjName', label: '课程环节'},
                    {prop: 'kclb1Name', label: '课程类别1'},
                    {prop: 'kclb2Name', label: '课程类别2'},
                    {prop: 'kclb3Name', label: '课程类别3'},
                    {prop: 'ztName', label: '状态'},
                    {prop: 'zxfxName', label: '主修辅修'},
                    {prop: 'bz', label: '备注'}
                ],
                bizDialog: [
                    {id: 'view', dialog: 'SetTemplateView'},
                    {id: 'edit', dialog: 'SetTemplateAdd'},
                    {id: 'add', dialog: 'SetTemplateAdd'},
                    {id: 'addMajor', dialog: 'SetTemplatAddMajors'}
                ],
                isFixedColumn: true
            }
        },
        components: {},
        created() {
        },
        activated() {
        },
        deactivated() {
        },
        methods: {}
    }
</script>

<style scoped lang="stylus">
</style>
